import Vue from 'vue'
import VueRouter from 'vue-router'



Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/components/Home.vue'),
    children: [
      {
        path: '/about',
        name: 'about',
        component: () => import('@/components/About.vue'),
      },
      {
        path: '/s1',
        name: 's1',
        component: () => import('@/components/s1.vue'),
      },
      {
        path: '/ifShow',
        name: 'ifShow',
        component: () => import('@/components/ifShow.vue'),
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
